import request from '@/utils/request'

// 获取上传token   /upload/getToken
export function getToken(data) {
  return request({
    url: '/upload/getToken',
    method: 'get',
    params: data
  })
}

// 通过key获取图片的url   /upload/getUrl
export function getUrl(data) {
  return request({
    url: '/upload/getUrl',
    method: 'get',
    params: data
  })
}

// 获取文件的详细信息  /upload/getAttachInfo
export function getAttachInfo(data) {
  return request({
    url: '/upload/getAttachInfo',
    method: 'post',
    data
  })
}
